#include <iostream>
using namespace std;

// 声明三个全局整数
int firstNumber = 0;
int secondNumber = 0;
int multiplicationResult = 0;

void MultiplyNumbers ()
{
   cout << "Enter the first number: ";
   cin >> firstNumber;

   cout << "Enter the second number: ";
   cin >> secondNumber;

   multiplicationResult = firstNumber * secondNumber;

   // Display multiplicationResult
   cout << "Displaying from MultiplyNumbers(): ";
   cout << firstNumber << " x " << secondNumber;
   cout << " = " << multiplicationResult << endl;
}
int main ()
{
   cout << "This program multiplies two numbers" << endl;
   MultiplyNumbers();
   cout << "Displaying from main(): ";

   // 这一行现在将编译并工作
   cout << firstNumber << " x " << secondNumber;
   cout << " = " << multiplicationResult << endl;

   return 0;
}